package com.wyj.service.impl;

import com.wyj.event.RabbitProducer;
import com.wyj.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EventServiceImpl implements EventService {

    @Autowired
    RabbitProducer rabbitProducer;


    @Override
    public void sendMsg(String msg) {
        rabbitProducer.send(msg);
    }
}
